{include file='fcworker/fc_head2'}
<link rel="stylesheet" type="text/css" href="{$_G['URL']['FCWORK_CSS']}css/style.css?v=5">
<style type="text/css">
    a:visited{text-decoration: none;}
    .homeTag{
        position: fixed;
        z-index: 51;
        width: 60px;
        height: 60px;
        right: 10px;
        bottom: 20px;
    }
    .setTitle{
        background: url("https://css2020.yixuan.net/2020css/fcworker/images/settitbg.png") center no-repeat;
        text-align: center;
        line-height: 1.37rem;
        color: #fff;
        font-size: .45rem;
        width: 7.05rem;
        height: 1.37rem;
        background-size: 100% 1.37rem;
        margin: .2rem auto 0;
        position: fixed;
        left: 0.2rem;
        top: 0;
        z-index: 2;
        overflow: hidden;
    }
    .h167{
        height: 1.67rem;
    }
    .setTitle a{
        display: block;
        background: url("https://css2020.yixuan.net/2020css/fcworker/images/backBtn.png") center no-repeat;
        width: .19rem;
        height: .32rem;
        background-size: 100% auto;
        position: absolute;
        top: .44rem;
        left: .12rem;
    }
    .s_title{
        background: none !important;
        font-weight: normal !important;
    }
    .new_tr{
        background: #edf6ff;
        line-height: .7rem;
    }
    .right_str{
        width: 28%; display: inline-block; text-align: right;position: relative;float: right;
        font-size: 12px;
        margin-right: 6px;
    }
</style>
<div id="mescroll" class="mescroll">
    <div id="app">
        {if empty($op) }


        <a href="/{php echo createMobileUrl('x_index',array('themeid'=>$themeid));}" class="homeTag"><img src="{$_G['URL']['FCWORK_CSS']}images/homeBtn.png"></a>
        <div class="setTitle">
            <a href="/{php echo createMobileUrl('x_index',array('themeid'=>$themeid));}"></a>
            {php echo empty($shop)?'':mb_substr($shopname,0,4,'utf-8').'-';}团队排名
        </div>
        <div class="h167"></div>
        <div class="s_items">
            <div class="s_title" >
                <div class="tabTit">团队总排行{if !empty($notworker)}【{$notworker}个定单无客服】{/if}
                    <div class="right_str" ><a href="/{php echo createMobileUrl('x_grouprank',array('themeid'=>$themeid,'company'=>$company,'op'=>'list','type'=>'all'));}">
                        <span style="color: #198bcb;">查看{$teamname}明细</span></a>
                    </div>
                </div>
            </div>
            <!--  -->
            <table class="lm_table" >
                <thead  style="background-color:#ffffff">
                <tr class="new_tr">
                    <td style="width: 2%;"></td>
                    <td style="width: 6%;color: #198bcb; text-align: right;">排名</td>
                    <td style="width: 14%;color: #198bcb">团队</td>
                    <td style="width: 9%;"><a {if $paixu!='xfs'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'xfs'));}">新粉</a></td>
                    <td style="width: 9%;"><a {if $paixu!='zf'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'zf'));}">转发</a></td>
                    <td style="width: 10%;"><a {if $paixu!='ll'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'ll'));}">浏览</a></td>
                    <td style="width: 10%;"><a {if $paixu!=''}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],));}">成交</a></td>
                    <td style="width: 9%;"><a {if $paixu!='zx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'zx'));}">直销</a></td>
                    <td style="width: 9%;"><a {if $paixu!='xx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'xx'));}">线下</a></td>
                    <td style="width: 9%;"><a {if $paixu!='refund'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'refund'));}">退款</a></td>
                    <td style="width: 14%;"><a {if $paixu!='fee'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'fee'));}">实收</a></td>
                    <td style="width: 2%;"></td>
                </tr>
                </thead>
                <tbody>
                {loop $team $index $row}
                <tr>
                    <td> </td>
                    <td style="text-align: right;"><span>{php echo $index+1;}</span></td>
                    <td style="color: #198bcb">{php echo mb_substr($row['name'],-3,3,'utf-8');}</td>
                    <td >{$row['newfans']}</td>
                    <td style="color: #198bcb">{$row['forward']}</td>
                    <td >{$row['scansum']}</td>
                    <td style="color: #198bcb">{$row['record']}</td>
                    <td>{$row['recordzx']}</td>
                    <td>{$row['recordxx']}</td>
                    <td style="color: #198bcb">{$row['refund']}</td>
                    <td style="color: #198bcb">{$row['fee']}</td>
                    <td> </td>
                </tr>
                {if $myworker['level'] != '3'}
                <tr class="sib">
                    <td colspan="11">
                        <table class="lm_table pd0">
                            {loop $row['list'] $index $item}
                            <tr>
                                <td style="width: 2%;"> </td>
                                <td style="width: 7%;text-align: right;"><img src="https://css2020.yixuan.net/2020css/fcworker/images/arrow.png"></td>
                                <td style="width: 14%;">{php echo mb_substr($item['name'],-3,3,'utf-8');}</td>
                                <td style="width: 9%;" >{$item['newfans']}</td>
                                <td style="width: 9%;color: #198bcb">{$item['forward']}</td>
                                <td style="width: 10%;" >{$item['scansum']}</td>
                                <td style="width: 10%;color: #198bcb">{$item['record']}</td>
                                <td style="width: 9%;">{$item['recordzx']}</td>
                                <td style="width: 9%;">{$item['recordxx']}</td>
                                <td style="width: 9%;color: #198bcb">{$item['refund']}</td>
                                <td style="width: 14%;color: #198bcb">{$item['fee']}</td>
                                <td style="width: 2%;"> </td>
                            </tr>
                            {/loop}
                        </table>
                    </td>
                </tr>
                {/if}
                {/loop}
                </tbody>
            </table>

        </div>


        <div class="s_items">
            <div class="s_title" >
                <div class="tabTit">
                    团队今日排行榜
                    <div class="right_str" ><a  href="/{php echo createMobileUrl('x_grouprank',array('themeid'=>$themeid,'company'=>$company,'op'=>'list','type'=>'today'));}"><span style="color: #198bcb;">查看{$teamname}明细</span></a></div>
                </div>
            </div>

            <table class="lm_table" >
                <thead  style="background-color:#ffffff">
                <tr class="new_tr">
                    <td style="width: 2%;"></td>
                    <td style="width: 8%;color: #198bcb; text-align: right;">排名</td>
                    <td style="width: 14%;color: #198bcb">团队</td>
                    <td style="width: 9%;"><a {if $paixu!='xfs'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'xfs'));}">新粉</a></td>
                    <td style="width: 9%;"><a {if $paixu!='zf'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'zf'));}">转发</a></td>
                    <td style="width: 10%;"><a {if $paixu!='ll'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'ll'));}">浏览</a></td>
                    <td style="width: 10%;"><a {if $paixu!=''}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],));}">成交</a></td>
                    <td style="width: 9%;"><a {if $paixu!='zx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'zx'));}">直销</a></td>
                    <td style="width: 9%;"><a {if $paixu!='xx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'xx'));}">线下</a></td>
                    <td style="width: 9%;"><a {if $paixu!='refund'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'refund'));}">退款</a></td>
                    <td style="width: 14%;"><a {if $paixu!='fee'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'fee'));}">实收</a></td>
                    <td style="width: 2%;"></td>
                </tr>
                </thead>
                <tbody>
                {loop $teamtoday $index $row}
                <tr>
                    <td> </td>
                    <td style="text-align: right;"><span>{php echo $index+1;}</span></td>
                    <td style="color: #198bcb">{php echo mb_substr($row['name'],-3,3,'utf-8');}</td>
                    <td >{$row['newfans']}</td>
                    <td style="color: #198bcb">{$row['forward']}</td>
                    <td >{$row['scansum']}</td>
                    <td style="color: #198bcb">{$row['record']}</td>
                    <td>{$row['recordzx']}</td>
                    <td>{$row['recordxx']}</td>
                    <td style="color: #198bcb">{$row['refund']}</td>
                    <td style="color: #198bcb">{$row['fee']}</td>
                    <td> </td>
                </tr>
                {if $myworker['level'] != '3'}
                <tr class="sib">
                    <td colspan="11">
                        <table class="lm_table pd0">
                            {loop $row['list'] $index $item}
                            <tr>
                                <td style="width: 2%;"></td>
                                <td style="width: 8%;text-align: right;"><img src="https://css2020.yixuan.net/2020css/fcworker/images/arrow.png"></td>
                                <td style="width: 14%;">{php echo mb_substr($item['name'],-3,3,'utf-8');}</td>
                                <td style="width: 9%;" >{$item['newfans']}</td>
                                <td style="width: 9%;color: #198bcb">{$item['forward']}</td>
                                <td style="width: 10%;" >{$item['scansum']}</td>
                                <td style="width: 10%;color: #198bcb">{$item['record']}</td>
                                <td style="width: 9%;">{$item['recordzx']}</td>
                                <td style="width: 9%;">{$item['recordxx']}</td>
                                <td style="width: 9%;color: #198bcb">{$item['refund']}</td>
                                <td style="width: 14%;color: #198bcb">{$item['fee']}</td>
                                <td style="width: 2%;"> </td>
                            </tr>
                            {/loop}
                        </table>
                    </td>
                </tr>
                {/if}
                {/loop}
                </tbody>
            </table>

        </div>


        <div class="s_items">
            <div class="s_title" >
                <div class="tabTit">
                    团队昨日排行榜
                    <div class="right_str" ><a href="/{php echo createMobileUrl('x_grouprank',array('themeid'=>$themeid,'company'=>$company,'op'=>'list','type'=>'yesterday'));}"><span style="color: #198bcb;">查看{$teamname}明细</span></a></div>
                </div>
            </div>

            <table class="lm_table" >
                <thead  style="background-color:#ffffff">
                <tr class="new_tr">
                    <td style="width: 2%;"></td>
                    <td style="width: 8%;color: #198bcb; text-align: right;">排名</td>
                    <td style="width: 14%;color: #198bcb">团队</td>
                    <td style="width: 9%;"><a {if $paixu!='xfs'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'xfs'));}">新粉</a></td>
                    <td style="width: 9%;"><a {if $paixu!='zf'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'zf'));}">转发</a></td>
                    <td style="width: 10%;"><a {if $paixu!='ll'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'ll'));}">浏览</a></td>
                    <td style="width: 10%;"><a {if $paixu!=''}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],));}">成交</a></td>
                    <td style="width: 9%;"><a {if $paixu!='zx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'zx'));}">直销</a></td>
                    <td style="width: 9%;"><a {if $paixu!='xx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'xx'));}">线下</a></td>
                    <td style="width: 9%;"><a {if $paixu!='refund'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'refund'));}">退款</a></td>
                    <td style="width: 14%;"><a {if $paixu!='fee'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'fee'));}">实收</a></td>
                    <td style="width: 2%;"></td>
                </tr>
                </thead>
                <tbody>
                {loop $teamyesterday $index $row}
                <tr>
                    <td> </td>
                    <td style="text-align: right;"><span>{php echo $index+1;}</span></td>
                    <td style="color: #198bcb">{php echo mb_substr($row['name'],-3,3,'utf-8');}</td>
                    <td >{$row['newfans']}</td>
                    <td style="color: #198bcb">{$row['forward']}</td>
                    <td >{$row['scansum']}</td>
                    <td style="color: #198bcb">{$row['record']}</td>
                    <td>{$row['recordzx']}</td>
                    <td>{$row['recordxx']}</td>
                    <td style="color: #198bcb">{$row['refund']}</td>
                    <td style="color: #198bcb">{$row['fee']}</td>
                    <td> </td>
                </tr>
                {if $myworker['level'] != '3'}
                <tr class="sib">
                    <td colspan="11">
                        <table class="lm_table pd0">
                            {loop $row['list'] $index $item}
                            <tr>
                                <td style="width: 2%;"> </td>
                                <td style="width: 8%;text-align: right;"><img src="https://css2020.yixuan.net/2020css/fcworker/images/arrow.png"></td>
                                <td style="width: 14%;">{php echo mb_substr($item['name'],-3,3,'utf-8');}</td>
                                <td style="width: 9%;" >{$item['newfans']}</td>
                                <td style="width: 9%;color: #198bcb">{$item['forward']}</td>
                                <td style="width: 10%;" >{$item['scansum']}</td>
                                <td style="width: 10%;color: #198bcb">{$item['record']}</td>
                                <td style="width: 9%;">{$item['recordzx']}</td>
                                <td style="width: 9%;">{$item['recordxx']}</td>
                                <td style="width: 9%;color: #198bcb">{$item['refund']}</td>
                                <td style="width: 14%;color: #198bcb">{$item['fee']}</td>
                                <td style="width: 2%;"> </td>
                            </tr>
                            {/loop}
                        </table>
                    </td>
                </tr>
                {/if}
                {/loop}
                </tbody>
            </table>

        </div>


        <div class="s_items">
            <div class="s_title" >
                <div class="tabTit">
                    团队前日排行榜
                    <div  class="right_str" ><a href="/{php echo createMobileUrl('x_grouprank',array('themeid'=>$themeid,'company'=>$company,'op'=>'list','type'=>'beforeyesterday'));}"><span style="color: #198bcb;">查看{$teamname}明细</span></a></div>
                </div>
            </div>

            <table class="lm_table" >
                <thead  style="background-color:#ffffff">
                <tr class="new_tr">
                    <td style="width: 2%;"></td>
                    <td style="width: 8%;color: #198bcb; text-align: right;">排名</td>
                    <td style="width: 14%;color: #198bcb">团队</td>
                    <td style="width: 9%;"><a {if $paixu!='xfs'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'xfs'));}">新粉</a></td>
                    <td style="width: 9%;"><a {if $paixu!='zf'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'zf'));}">转发</a></td>
                    <td style="width: 10%;"><a {if $paixu!='ll'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'ll'));}">浏览</a></td>
                    <td style="width: 10%;"><a {if $paixu!=''}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],));}">成交</a></td>
                    <td style="width: 9%;"><a {if $paixu!='zx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'zx'));}">直销</a></td>
                    <td style="width: 9%;"><a {if $paixu!='xx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'xx'));}">线下</a></td>
                    <td style="width: 9%;"><a {if $paixu!='refund'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'refund'));}">退款</a></td>
                    <td style="width: 14%;"><a {if $paixu!='fee'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'company'=>$_P['company'],'paixu'=>'fee'));}">实收</a></td>
                    <td style="width: 2%;"></td>
                </tr>
                </thead>
                <tbody>
                {loop $teambeforeyesterday $index $row}
                <tr>
                    <td> </td>
                    <td style="text-align: right;"><span>{php echo $index+1;}</span></td>
                    <td style="color: #198bcb">{php echo mb_substr($row['name'],-3,3,'utf-8');}</td>
                    <td >{$row['newfans']}</td>
                    <td style="color: #198bcb">{$row['forward']}</td>
                    <td >{$row['scansum']}</td>
                    <td style="color: #198bcb">{$row['record']}</td>
                    <td>{$row['recordzx']}</td>
                    <td>{$row['recordxx']}</td>
                    <td style="color: #198bcb">{$row['refund']}</td>
                    <td style="color: #198bcb">{$row['fee']}</td>
                    <td> </td>
                </tr>
                {if $myworker['level'] != '3'}
                <tr class="sib">
                    <td colspan="11">
                        <table class="lm_table pd0">
                            {loop $row['list'] $index $item}
                            <tr>
                                <td style="width: 2%;"> </td>
                                <td style="width: 8%;text-align: right;"><img src="https://css2020.yixuan.net/2020css/fcworker/images/arrow.png"></td>
                                <td style="width: 14%;">{php echo mb_substr($item['name'],-3,3,'utf-8');}</td>
                                <td style="width: 9%;" >{$item['newfans']}</td>
                                <td style="width: 9%;color: #198bcb">{$item['forward']}</td>
                                <td style="width: 10%;" >{$item['scansum']}</td>
                                <td style="width: 10%;color: #198bcb">{$item['record']}</td>
                                <td style="width: 9%;">{$item['recordzx']}</td>
                                <td style="width: 9%;">{$item['recordxx']}</td>
                                <td style="width: 9%;color: #198bcb">{$item['refund']}</td>
                                <td style="width: 14%;color: #198bcb">{$item['fee']}</td>
                                <td style="width: 2%;"> </td>
                            </tr>
                            {/loop}
                        </table>
                    </td>
                </tr>
                {/if}
                {/loop}
                </tbody>
            </table>

        </div>
        {elseif $op=='list' }
        <a href="/{php echo createMobileUrl('x_index',array('themeid'=>$themeid));}" class="homeTag"><img src="{$_G['URL']['FCWORK_CSS']}images/homeBtn.png"></a>
        <div class="setTitle">
            <a href="/{php echo createMobileUrl('x_grouprank',array('themeid'=>$themeid));}"></a>
            {php echo empty($shop)?'':mb_substr($shopname,0,4,'utf-8').'-';}团队{$ranktips}
        </div>
        <div class="h167"></div>


        {loop $team $index $row}
        {if $myworker['level'] != '3' || $myworker['level'] == '3' && $row['team']==$myworker['team']}
        <div class="s_items">
            <div class="s_title" >
                <div class="tabTit">
                    {$row['name']}{$ranktips}

                </div>
            </div>
            <!--  -->
            <table class="lm_table" style="font-size: 0.8em;" >
                <thead  style="background-color:#ffffff">
                <tr class="new_tr">
                    <td style="width: 2%;"></td>
                    <td style="width: 5%;color: #198bcb; text-align: right;">排名</td>
                    <td style="width: 13%;color: #198bcb">姓名</td>
                    <td style="width: 8%;"><a {if $paixu!='xfs'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'op'=>'list','type'=>$optype ,'company'=>$_P['company'],'paixu'=>'xfs'));}">新粉</a></td>
                    <td style="width: 9%;"><a {if $paixu!='zf'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'op'=>'list','type'=>$optype ,'company'=>$_P['company'],'paixu'=>'zf'));}">转发</a></td>
                    <td style="width: 10%;"><a {if $paixu!='ll'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'op'=>'list','type'=>$optype ,'company'=>$_P['company'],'paixu'=>'ll'));}">浏览</a></td>
                    <td style="width: 8%;"><a {if $paixu!=''}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'op'=>'list','type'=>$optype ,'company'=>$_P['company'],));}">成交</a></td>
                    <td style="width: 8%;"><a {if $paixu!='zx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'op'=>'list','type'=>$optype ,'company'=>$_P['company'],'paixu'=>'zx'));}">直销</a></td>
                    <td style="width: 8%;"><a {if $paixu!='xx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'op'=>'list','type'=>$optype ,'company'=>$_P['company'],'paixu'=>'xx'));}">线下</a></td>
                    <td style="width: 8%;"><a {if $paixu!='refund'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'op'=>'list','type'=>$optype ,'company'=>$_P['company'],'paixu'=>'refund'));}">退款</a></td>
                    <td style="width: 10%;"><a {if $paixu!='fee'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'op'=>'list','type'=>$optype ,'company'=>$_P['company'],'paixu'=>'fee'));}">实收</a></td>
                    <td style="width: 19%;color: #198bcb; text-align: right;">日报</td>
                    <td style="width: 2%;"></td>
                </tr>
                </thead>
                <tbody>
                {loop $row['list'] $index $item}
                <tr>
                    <td> </td>
                    <td ><span>{php echo $index+1;}</span></td>
                    <td style="color: #198bcb">{php echo mb_substr($item['name'],-3,3,'utf-8');}</td>
                    <td >{$item['newfans']}</td>
                    <td style="color: #198bcb">{$item['forward']}</td>
                    <td >{$item['scansum']}</td>
                    <td style="color: #198bcb">{$item['record']}</td>
                    <td>{$item['recordzx']}</td>
                    <td>{$item['recordxx']}</td>
                    <td style="color: #198bcb">{$item['refund']}</td>
                    <td style="color: #198bcb">{$item['fee']}</td>
                    {if $myworker['level'] != '3'}
                    <td><a style="color: #198bcb;" href="/{php echo createMobileUrl('x_grouprank',array('themeid'=>$themeid,'op'=>'report','uid'=>$item['uid']));}">查看</a></td>
                    {/if}
                    <td> </td>
                </tr>
                {/loop}
                </tbody>
            </table>
        </div>
        {/if}
        {/loop}
        {elseif $op=='report' }


        <a href="/{php echo createMobileUrl('x_index',array('themeid'=>$themeid));}" class="homeTag"><img src="{$_G['URL']['FCWORK_CSS']}images/homeBtn.png"></a>
        <div class="setTitle">
            {if $_P['fh']=='home'}
            <a href="/{php echo createMobileUrl('x_index',array('themeid'=>$themeid));}"></a>
            {else}
            <a href="/{php echo createMobileUrl('x_grouprank',array('themeid'=>$themeid,'company'=>'0','op'=>'list','type'=>'all'));}"></a>
            {/if}
            {php echo empty($shop)?'':mb_substr($shopname,0,4,'utf-8').'-';}{$info['username']}的日报
        </div>
        <div class="h167"></div>


        <div class="s_items">
            <div class="s_title" >
                <form id="myform" action="/{php echo createMobileUrl('x_grouprank',array('themeid'=>$themeid));}" method="get" class="form-horizontal" role="form">
                    <input type="hidden" name="op" value="report" />
                    <input type="hidden" name="fh" value="home" />
                    <input type="hidden" name="soft" value="{$soft}" />
                    <div style="width: 98%;display: inline-block;" >
                        <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                        请选择： <select onchange="submitForm();" class="form-control" name="uid">
                        {loop $wlist $row}
                        <option value="{$row['uid']}" {if $uid == $row['uid'] }selected="selected"{/if}>{if $system['is_multiple_merchants']}{$row['companyname']}-{/if}{$row['teamname']}-{$row['username']}的日报</option>
                        {/loop}
                    </select>
                    </div>
                </form>
            </div>
            <!--  -->
            <table class="lm_table" >
                <thead  style="background-color:#ffffff">
                <tr class="new_tr">
                    <td style="width: 2%;"></td>
                    <td>日期</td>
                    <td style="color: #198bcb">新粉丝</td>
                    <td>转发</td>
                    <td style="color: #198bcb">浏览量</td>
                    <td>直销</td>
                    <td style="color: #198bcb">成交</td>
                    <td>线下</td>
                    <td style="color: #198bcb">退款</td>
                    <td >实收</td>
                    <td style="color: #198bcb">红包</td>
                    <td style="width: 2%;"></td>
                </tr>
                </thead>
                <tbody>
                {loop $report $index $item}
                <tr>
                    <td></td>
                    <td>{php echo date("m-d",strtotime($item['riqi']));}</td>
                    <td style="color: #198bcb">{$item['newfans']}</td>
                    <td>{$item['forward']}</td>
                    <td style="color: #198bcb">{$item['scansum']}</td>
                    <td>{$item['recordzx']}</td>
                    <td style="color: #198bcb">{$item['record']}</td>
                    <td>{$item['recordxx']}</td>
                    <td style="color: #198bcb">{$item['refund']}</td>
                    <td >{$item['fee']}</td>
                    <td style="color: #198bcb">{$item['comm']}</td>
                    <td></td>
                </tr>
                {/loop}
                </tbody>
            </table>
        </div>
        {/if}
        <table class="s_table">
            <thead>
            <tr >
                <td style="background:#f8f8f8;  text-align: center;line-height: 0.5rem;">
                    未出现在排行榜中的，代表当日没有任何宣传。
                </td>
            </tr>
            </thead>
        </table>
        {include file='yxworker/w_foot_yixuan'}
    </div>
</div>
{include file='fcworker/fc_base_foot'}
<!--  下拉刷新-->
<script>
    const mescroll = new MeScroll("mescroll", {
        down: {
            auto: false,
            callback: () => {
                mescroll.endSuccess();
                setTimeout(() => {
                    window.location.reload();
                },500)
            }
        },
        up: {
            use: false
        }
    })
</script>
<script>
    $(".gohome").remove();
    $('.lm_table tr').click(function(){
        console.log(1);
        $(this).next('.sib').toggle();
    })
    function submitForm(){
        var form = document.getElementById("myform");
        form.submit();
    }
</script>
<style>
    .pd0 { padding-bottom:0;}
    .pd0 tr:last-child td { border-bottom:none;}
    .sib { display:none;}
</style>
